package Program;
/**
 * 销售员
 */
public class SalesEmployee extends Employee {
    private float monthlySales;
    private float commissionRate;

    public SalesEmployee(String name, int birthday, float monthlySales, float commissionRate) {
        super(name, birthday);
        this.monthlySales = monthlySales;
        this.commissionRate = commissionRate;
    }
   public float countSalary(){
        return monthlySales * commissionRate;
   }
    public float getMonthlySales() {
        return monthlySales;
    }

    public void setMonthlySales(float monthlySales) {
        this.monthlySales = monthlySales;
    }

    public float getCommissionRate() {
        return commissionRate;
    }

    public void setCommissionRate(float commissionRate) {
        this.commissionRate = commissionRate;
    }
}
